{_include admin_menu}
<div class="content_block col-xs-12 col-sm-12 col-md-12 col-lg-12">
	<form action="<?php echo base_url('admin/group/add'); ?>" method="post" class="form-horizontal">
		<legend>จัดการสถานะผู้ใช้</legend>
		<?php if(!empty($group[0]['id'])){
			?>
			<input type="hidden" name="id" value="<?php echo $group[0]['id'];?>" />
			<?php
			}
			?>
			<div class="form-group">
	      <label class="col-sm-3 control-label" for="name">ชื่อกลุ่ม</label>
	      <div class="col-sm-4">
	        <input type="text" class="col-sm-4 form-control" value="<?php if(!empty($group[0]['name'])) echo $group[0]['name'];  ?>" name="name" id="name">
	      </div>
	    </div>
			<div class="form-group">
	      <label class="col-sm-3 control-label" for="name">รายละเอียดกลุ่ม</label>
	      <div class="col-sm-4">
	        <textarea name="description" class="form-control"><?php if(!empty($group[0]['description'])) echo $group[0]['description'];  ?></textarea>
	      </div>
	    </div>

			<div class="form-group">
	      <div class="col-sm-offset-3 col-sm-9">
	        <button type="submit" class="btn btn-primary" id="submit" name="submit" value="submit">ยืนยัน</button>
	        <a href="<?php echo base_url("admin/group");?>" class="btn btn-default">ยกเลิก</a>
	      </div>
	    </div>

	</form>
</div>